<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			function foo(e)
			{
			console.log(e);
			
			console.log(e.button);//0左键 1滚轮2 右键
			console.log("页面坐标："+e.clientX+","+e.clientY);
			console.log("屏幕坐标: "+e.screenX+","+e.screenY);
			}
			document.onmousedown = foo;
		</script>
	</body>
</html>
